import request from '@/utils/request'

export function getCommodity() {
    return request({
        method: "get",
        url: "api/commodity/allCommodity"
    })
}

export function search(word) {
    return request({
        url: `api/commodity/search?name=${word}` ,
        method:'get'
    })
}